package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Privilege;
import com.CMS.server.domain.Rol;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("rol")
public interface RolService extends RemoteService{
	
	public List<Rol> getRoles() throws Exception;
	
	public void createRol(String Description, List<Long> privilegios);
	
	public Rol updateRol(long id,boolean flagDelete,String description);
	
	public void deleteRol(long id);
	
	public List<Privilege> getPrivileges(long id);
	
	public void updatePrivileges(long idRol,List<Long> lista);
}
